package org.wu.framework.authorization.platform.domain.model.sys.dictionary;

import org.wu.framework.authorization.platform.infrastructure.entity.SysDictionaryDO;
import org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomainRepository;
import org.wu.framework.web.response.Result;
import org.wu.framework.web.spring.response.repository.LazyCrudRepository;

import java.util.List;

/**
 * describe
 *
 * @author Jia wei Wu
 * @date 2023/05/17 11:19 晚上
 * @see DefaultDDDLazyDomainRepository
 **/

public interface SysDictionaryRepository extends LazyCrudRepository<SysDictionaryDO, SysDictionary, Integer> {


    /**
     * describe 新增
     *
     * @param
     * @return
     * @exception/throws
     * @author Jia wei Wu
     * @date 2023/05/17 11:19 晚上
     **/

    Result<SysDictionary> story(SysDictionary sysDictionary);

    /**
     * describe 查询单个
     *
     * @param
     * @return
     * @exception/throws
     * @author Jia wei Wu
     * @date 2023/05/17 11:19 晚上
     **/

    Result<SysDictionary> findOne(SysDictionary sysDictionary);

    /**
     * describe 查询多个
     *
     * @param
     * @return
     * @exception/throws
     * @author Jia wei Wu
     * @date 2023/05/17 11:19 晚上
     **/

    Result<List<SysDictionary>> findList(SysDictionary sysDictionary);

    /**
     * describe 删除
     *
     * @param
     * @return
     * @exception/throws
     * @author Jia wei Wu
     * @date 2023/05/17 11:19 晚上
     **/

    Result<SysDictionary> delete(SysDictionary sysDictionary);

}